package com.example.async.async.service;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class AnsycService {

    @Async
    public void task1(){
        for(int i = 0; i<100; i++){
            System.out.println("task1==>"+i);
        }
    }

    @Async
    public void task2(){
        for(int i = 0; i<100; i++){
            System.out.println("task2==>"+i);
        }
    }

    @Async
    public void task3(){
        for(int i = 0; i<100; i++){
            System.out.println("task3==>"+i);
        }
    }
}
